Scenario #3108: Invalidate Sepa Mandate For Debitor

Given Properties

name value
bankAccountIBAN DE02701500000000594937
mandateValidUntil 2025-09-30

SEPA-Mandate: DE02701500000000594937

GET /api/hs/office/sepamandates?iban=DE02701500000000594937
=> status: 200 OK 
[ {
  "uuid" : "41730da7-7a27-4bc8-9e15-9274270959d4", // SEPA-Mandate: Test AG
  "debitor" : {
    "uuid" : "3766040f-38a5-42a7-b2c2-92290af2d33c", // Debitor: D-3101000 - Test AG - main debitor
    "debitorRel" : {
      "uuid" : "9d2675a4-ffd3-4143-ad92-8f15d9e6f68f",
      "anchor" : {
        "uuid" : "f8f6ad7e-53d2-4cf0-9cb9-30ca2767c599", // partnerPersonUuid
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Test AG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "holder" : {
        "uuid" : "f8f6ad7e-53d2-4cf0-9cb9-30ca2767c599", // partnerPersonUuid
        "personType" : "LEGAL_PERSON",
        "tradeName" : "Test AG",
        "salutation" : null,
        "title" : null,
        "givenName" : null,
        "familyName" : null
      },
      "type" : "DEBITOR",
      "mark" : null,
      "contact" : {
        "uuid" : "ffbe24a8-f763-4559-a60b-bc1b4ad3f32f",
        "caption" : "Test AG - billing department",
        "postalAddress" : { },
        "emailAddresses" : {
          "main" : "billing@test-ag.example.org"
        },
        "phoneNumbers" : { }
      }
    },
    "debitorNumber" : "D-3101000",
    "debitorNumberSuffix" : "00",
    "partner" : {
      "uuid" : "72eb4871-122a-42d8-b9a7-e45b7faf9fef", // Partner: P-31010 - Test AG
      "partnerNumber" : "P-31010",
      "partnerRel" : {
        "uuid" : "a4914399-27dc-4094-bf76-d6230d4f8373", // partnerRelationUuid
        "anchor" : {
          "uuid" : "c6575205-1480-4b70-a30b-d0c5a1d7cc99", // Person: Hostsharing eG
          "personType" : "LEGAL_PERSON",
          "tradeName" : "Hostsharing eG",
          "salutation" : null,
          "title" : null,
          "givenName" : null,
          "familyName" : null
        },
        "holder" : {
          "uuid" : "f8f6ad7e-53d2-4cf0-9cb9-30ca2767c599", // partnerPersonUuid
          "personType" : "LEGAL_PERSON",
          "tradeName" : "Test AG",
          "salutation" : null,
          "title" : null,
          "givenName" : null,
          "familyName" : null
        },
        "type" : "PARTNER",
        "mark" : null,
        "contact" : {
          "uuid" : "22c8432b-6fc1-44b4-a977-e1d00327b323", // Contact: Test AG - China
          "caption" : "Test AG - China",
          "postalAddress" : {
            "city" : "Dongguan City",
            "firm" : "Test AG",
            "name" : "Fi Zhong-Kha",
            "street" : "No.2 Commercial Second Street",
            "country" : "China",
            "building" : "Thi Chi Koh Building",
            "district" : "Niushan Wei Wu",
            "province" : "Guangdong Province"
          },
          "emailAddresses" : {
            "main" : "norden@test-ag.example.org"
          },
          "phoneNumbers" : {
            "phone" : "++15 999 654321"
          }
        }
      },
      "details" : {
        "uuid" : "ee1fbee4-f675-42f6-8cb7-66aa0b15e1b8",
        "registrationOffice" : "Registergericht Hamburg",
        "registrationNumber" : "1234567",
        "birthName" : null,
        "birthPlace" : null,
        "birthday" : null,
        "dateOfDeath" : null
      }
    },
    "billable" : true,
    "vatId" : "VAT123456",
    "vatCountryCode" : "DE",
    "vatBusiness" : true,
    "vatReverseCharge" : false,
    "refundBankAccount" : {
      "uuid" : "cefa37d7-33c7-4164-9ea8-28147700daa9",
      "holder" : "Test AG - refund bank account",
      "iban" : "DE88100900001234567892",
      "bic" : "BEVODEBB"
    },
    "defaultPrefix" : "tst"
  },
  "bankAccount" : {
    "uuid" : "8bf864fb-d076-4da8-901c-d35d9e50d405", // BankAccount: Test AG - debit bank account
    "holder" : "Test AG - debit bank account",
    "iban" : "DE02701500000000594937",
    "bic" : "SSKMDEMM"
  },
  "reference" : "Test AG - main debitor",
  "agreement" : "2022-10-12",
  "validFrom" : "2024-10-15",
  "validTo" : null
} ]

With production data, the bank-account could be used in multiple SEPA-mandates, make sure to use the right one!

Patch the End of the Mandate into the SEPA-Mandate

PATCH /api/hs/office/sepamandates/41730da7-7a27-4bc8-9e15-9274270959d4 // SEPA-Mandate: Test AG
{
  "validUntil" : "2025-09-30"
}
=> status: 200 OK 

generated on 03-10-2025 12:07:42 for branch master